package model

import (
	"nt-order/conf"
)

type OrderDataProcess struct {
	Id         int64
	FileName   string
	FileDir    string
	DataType   int
	DataStatus int
	StaffId    string
	CreateUser string
	UpdateUser string
	CreatedAt  string
	UpdatedAt  string
}

func (m *OrderDataProcess) Insert(ins OrderDataProcess) int64 {
	db := conf.GetDb()

	_, err := db.Insert(&ins)
	if err != nil {
		panic(err)
	}

	return ins.Id
}
